-- GENERATED SPELL FOR [Brightscale Wyrm] --


function spell0_24761(pUnit, Event) --@Energy Infusion,Self--
pUnit:FullCastSpellOnTarget(44406,pUnit)
pUnit:RegisterEvent('Sorts_24761', 20306, 1)
end

function Sorts_24761(pUnit, Event)
local choix_sorts_24761 = math.random(0, 0)
if choix_sorts_24761 == 0 then
pUnit:RegisterEvent('spell0_24761', 1, 1)
end
end

function mob24761_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24761', math.random(1500, 3000), 1)
end

function mob24761_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24761_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24761_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24761, 1, 'mob24761_Action')
RegisterUnitEvent(24761, 2, 'mob24761_Leave')
RegisterUnitEvent(24761, 3, 'mob24761_Kill')
RegisterUnitEvent(24761, 4, 'mob24761_Die')
